package net.togogo.egouweb1238.core.dao.area;

import java.util.List;

import net.togogo.egouweb1238.core.domain.area.Province;
import net.togogo.egouweb1238.core.query.area.ProvinceQuery;



public interface ProvinceDao {

	/**
	 * 添加
	 * @param province
	 */
	public Integer addProvince(Province province);

	/**
	 * 根据主键查找
	 * @param provinceQuery
	 */
	public Province getProvinceById(Integer id);

	/**
	 * 根据主键批量查找
	 * @param provinceQuery
	 */
	public List<Province> getProvincesByIds(List<Integer> idList);

	/**
	 * 根据主键删除
	 * @param provinceQuery
	 */
	public Integer deleteById(Integer id);

	/**
	 * 根据主键批量删除
	 * @param provinceQuery
	 */
	public Integer deleteByIds(List<Integer> idList);

	/**
	 * 根据主键更新
	 * @param provinceQuery
	 */
	public Integer updateProvinceById(Province province);

	/**
	 * 分页查询
	 * @param provinceQuery
	 */
	public List<Province> getProvinceListWithPage(ProvinceQuery provinceQuery);

	/**
	 * 集合查询
	 * @param provinceQuery
	 */
	public List<Province> getProvinceList(ProvinceQuery provinceQuery);
	
	/**
	 * 总条数
	 * @param provinceQuery
	 */
	public int getProvinceListCount(ProvinceQuery provinceQuery);
}
